package itsm.isperp.report.echarts.data.query;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.github.abel533.echarts.data.PieData;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2015-8-20
 * @since 1.0
 * 
 */
public class PieDataRowMapper implements RowMapper<PieData> {

	@Override
	public PieData mapRow(ResultSet arg0, int arg1) throws SQLException {

		PieData pd = new PieData(arg0.getString("name"),
				arg0.getObject("value"));

		return pd;
	}

}
